package com.rp.article;


//import com.rule.MyRule;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = "com.rp.article.mapper")
@ComponentScan(basePackages = {"com.rp"})
@EnableDiscoveryClient
/**
 * 负载均衡
 * 第一种方式
 * article服务请求user服务,再article服务再负载均衡
 */
//@RibbonClient(name = "service-user",configuration = MyRule.class)
//todo
//@EnableFeignClients({"com.rp"})
//@EnableHystrix
public class ArticleApplication {

    public static void main(String[] args) {
        SpringApplication.run(ArticleApplication.class, args);
    }
}
